/**
 * Created by yongxue on 16/1/19.
 */

/**
 * 搜索相关的function处理
 * @type {Element}
 */
var search = document.getElementById("search");
var text = document.getElementById("text");
function googleIt() {
    search.setAttribute('action', 'http://www.google.com.hk/search?');
    text.setAttribute('name', 'q');
}

function googleIt1(){
    search.setAttribute('action', 'https://inf.pub/#newwindow=1&q=');
    text.setAttribute('newwindow', 'q');
}

function baiduIt(){
    search.setAttribute('action', 'http://www.baidu.com/baidu');
    text.setAttribute('name', 'word');
}
